package com.scedu.service;

import com.scedu.domain.Girl;
import com.scedu.repository.GirlRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;



@Service
public class GirlService {
    @Autowired
    GirlRepository girlRepository;
    @Transactional
    public  void createtwo() {
        Girl girla=new Girl();
        girla.setAge(18);
        girla.setCupSize("A");
        girlRepository.save(girla);

        Girl girlb=new Girl();
        girlb.setAge(19);
        girlb.setCupSize("B");
        girlRepository.save(girlb);

    }
}
